﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ArtMath.Window
{
    public partial class IntellisenseWindow : Form
    {
        public IntellisenseWindow()
        {
            InitializeComponent();
        }

        void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
        public void insertItems(List<ListViewItem> lst)
        {
            listView1.Clear();
            foreach (ListViewItem item in lst)
            {
                listView1.Items.Add(item);
            }
            listView1.Items[0].Selected = true;
        }

        void frmIntellisense_Validated(object sender, EventArgs e)
        {
            Close();
        }

        void listView1_Validated(object sender, EventArgs e)
        {
            Close();
        }

        void listView1_Validating(object sender, CancelEventArgs e)
        {
            Close();
        }

        void frmIntellisense_Validating(object sender, CancelEventArgs e)
        {
            Close();

        }

        void frmIntellisense_Load(object sender, EventArgs e)
        {
        }

        void frmIntellisense_Shown(object sender, EventArgs e)
        {
            //Program.WinTools.linearF.Focus();
        }

        void listView1_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case Keys.Enter:

                    break;
            }
        }
    }
}
